package cn.smbms.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.smbms.dao.BillMapper;
import cn.smbms.pojo.Bill;
import cn.smbms.service.BillService;

@Service("billService")
public class BillServiceImpl implements BillService {

	@Resource(name="billMapper")
	private BillMapper billMapper;

	public boolean add(Bill bill) {
		return billMapper.add(bill) > 0;
	}

	@Override
	public List<Bill> getBillList(Bill bill) {
		return billMapper.getBillList(bill);
	}

	@Override
	public boolean deleteBillById(String delId) {
		return billMapper.deleteBillById(delId) > 0;
	}

	@Override
	public Bill getBillById(String id) {
		return billMapper.getBillById(id);
	}

	@Override
	public boolean modify(Bill bill) {
		return billMapper.modify(bill) > 0;
	}

}
